package com.bookmanager.www.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bookmanager.www.entity.author.Author;
import com.bookmanager.www.entity.author.AuthorQr;
import com.bookmanager.www.entity.author.AuthorSkill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: 风离
 * @Date: 2021/12/02/11:33
 * @Description:
 */
public interface FlAuthorMapper extends BaseMapper<Author> {


    /**
     * 查询本系统所有作者
     * @return
     */
    List<Author> selectAllAuthor();

    /**
     * 根据作者名称查询作者Qr
     * @param authorId
     * @return
     */
    List<AuthorQr> selectAuthorQrByAuthorId(@Param("authorId") Integer authorId);

    /**
     * 根据作者名称查询作者技能
     * @param authorId
     * @return
     */
    List<AuthorSkill> selectAuthorSkillByAuthorId(@Param("authorId")Integer authorId);
}
